<%@ include file="includes/head.jsp" %>
<script>
     function mostrar(){
        	var success = new PDFObject({ url: document.getElementById("pdf").value }).embed();
      }
</script>
	<form action="servletFichero" enctype="multipart/form-data" method="post">
		<p>
			Elige Documento:<br>
			<input type="file" name="datafile" id="pdf" size="40" onchange="mostrar">
		</p>
		<div>
			<input type="submit" value="enviar">
			<input type="submit" value="Ver PDF">
		</div>
	</form>
<%@ include file="includes/footer.jsp" %>